import { getDB } from "../../utils/db/mysql";
//添加新闻中的分类获取标题
export default defineEventHandler(async (event: any) => {
    let con = getDB();
    let [result] = await con.execute(
        `SELECT * from classify`
      );
    return {
      code: 2000,
      result,
    };
  });
  